<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<div align="center">
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
	<tr align="center">
		<th>序号</th>
		<th>供应商</th>
		<th>流水号</th>
		<th>订购合同</th>
		<th>送货单</th>

		<th>入库时间</th>
		<th>物料流水号</th>
		<th>名称</th>
		<th>规格</th>
		<th>数量</th>
		<th>单位</th>
		<th>单价</th>
		<th>价税金额</th>
		<th>税率</th>
		<th>模号
		</td>
		<th>备注</th>
		<th>{[$orderby]}</th>
	
	</tr>
	{[foreach name=outer1 key=key1 item=item1 from=$result]} 
	{[foreach name=outer2 key=key2 item=item2 from=$item1.record]}
	{[assign var="no" value="`$no+1`"]}
	<tr align="center">
		<td>{[$no]}</td>
		<td>{[if $item1.supplier_t ne '']} {[$item1.supplier_t]} {[/if]}</td>
		<td>{[$item1.id]}</td>
		<td>{[$item1.code]}</td>
		<td>{[$item1.number]}</td>

		<td>{[$item1.date]}</td>

		<td>{[$item2.id]}</td>
		<td>{[$item2.name]}</td>
		<td>{[$item2.standard]}</td>

		<td>{[$item2.amount2|string_float]}</td>
		<td>{[$item2.unit2]}</td>
		<td>{[$item2.price2|string_price]}</td>
		<td>{[$item2.total|string_price]}</td>
		<td>{[$item2.rate|string_float]}</td>
		<td>{[$item2.mold_t]}</td>

		<td>{[$item2.content]}</td>
		<td>{[$item.orderby_x]}</td>
	</tr>
	{[/foreach]} {[/foreach]}
</table>
</div>

</body>
</html>